package com.maxatime.service.impl;


import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.maxatime.dao.AreasMapper;
import com.maxatime.dao.CitiesMapper;
import com.maxatime.dao.ProvincesMapper;
import com.maxatime.pojo.entity.Areas;
import com.maxatime.pojo.entity.Cities;
import com.maxatime.pojo.entity.Provinces;
import com.maxatime.service.ProvincesS;
@Service
public class ProvincesMapperImpl implements ProvincesS{
	@Autowired
	ProvincesMapper ProvincesMapper;
	@Autowired
	CitiesMapper CitiesMapper;
	@Autowired 
	AreasMapper AreasMapper;
	@Override
	public List<Provinces> selectProvinces(Provinces record) {
		return ProvincesMapper.selectByPrimaryKey(record);
	}

	@Override
	public List<Cities> selectCities(Cities record) {
		List<Cities> list=CitiesMapper.selectByPrimaryKey(record);
		return list;
	}

	@Override
	public List<Areas> selectAreas(Areas record) {
		List<Areas> list=AreasMapper.selectByPrimaryKey(record);
		return list;
	}

	
	
}